package com.example.cash.craft.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ProductVO implements Serializable {

    @Schema(description = "商品ID")
    private Long id;

    @Schema(description = "类别ID")
    private Long categoryId;

    @Schema(description = "类别名称")
    private String categoryName;

    @Schema(description = "封面图片")
    private String coverImage;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "价格")
    private BigDecimal price;

    @Schema(description = "库存数量")
    private Integer stock;

    @Schema(description = "商品描述")
    private String description;

    @Schema(description = "销量")
    private Integer sales;

}